﻿using Basic.FlowGatewayModule.Interface;
using Basic.FlowRemoteModel.Application.Model;
using WeDonekRpc.ApiGateway.Attr;
using WeDonekRpc.HttpApiGateway;

namespace Basic.FlowGatewayModule.Api
{
    [ApiRouteName("/flow/app/audit/{name}")]
    internal class FlowAppAuditApi : ApiController
    {
        private readonly IFlowAppAuditService _Service;

        public FlowAppAuditApi ( IFlowAppAuditService service )
        {
            this._Service = service;
        }

        public CreateAuditResult Create ( CreateAuditArg arg )
        {
            return this._Service.Create(arg, base.UserState);
        }
    }
}
